package com.wuhunyu.service;

import com.wuhunyu.commonutils.query.CommonQuery;
import com.wuhunyu.commonutils.result.CommonResult;
import com.wuhunyu.entities.UcenterMember;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wuhunyu.entities.vo.UserLogin;
import com.wuhunyu.entities.vo.UserRegister;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author wuhunyu
 * @since 2021-01-23
 */
public interface UcenterMemberService extends IService<UcenterMember> {

    /**
     * 用户登录
     * @param userLogin
     * @return
     */
    public CommonResult login(UserLogin userLogin);

    /**
     * 用户注册
     * @param userRegister
     * @return
     */
    public CommonResult register(UserRegister userRegister);

    /**
     * 获取用户信息
     * @param request
     * @return
     */
    public CommonResult selectMemberInfo(HttpServletRequest request);

    /**
     * 根据用户id获取用户信息
     * @param id
     * @return
     */
    public CommonResult selectMemberInfo(String id);

    /**
     * 根据时间统计当天的注册人数
     * @param date
     * @return
     */
    public CommonResult countRegister(String date);

}
